@import './variables.scss';

@mixin colorBtn($color) {
  background: $color;

  &:hover {
    color: $color;

    &:before,
    &:after {
      background: $color;
    }
  }
}

.blue-btn {
  @include colorBtn($blue)
}

.light-blue-btn {
  @include colorBtn($light-blue)
}

.red-btn {
  @include colorBtn($red)
}

.pink-btn {
  @include colorBtn($pink)
}

.green-btn {
  @include colorBtn($green)
}

.tiffany-btn {
  @include colorBtn($tiffany)
}

.yellow-btn {
  @include colorBtn($yellow)
}

.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;

  &:hover {
    background: #fff;

    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }

  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }

  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}

.custom-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #fff;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 4px;
}




//新增icon图标 start
//新增
.el-icon-query-add {
  background: url('~@/assets/image/query_add.svg') center no-repeat;
  width: 14px;
  height: 14px;
}

.el-icon-query-add:before {
  content: "query-add";
  font-size: 14px;
  visibility: hidden;
}

.el-icon-query-add {
  font-size: 14px;
}

.el-icon-query-add:before {
  content: "\e611";
}
//修改
.el-icon-query-edit {
  background: url('~@/assets/image/query_edit.svg') center no-repeat;
  width: 14px;
  height: 14px;
}

.el-icon-query-edit:before {
  content: "query-edit";
  font-size: 14px;
  visibility: hidden;
}

.el-icon-query-edit {
  font-size: 14px;
}

.el-icon-query-edit:before {
  content: "\e611";
}
//刷新
.el-icon-query-refresh {
  background: url('~@/assets/image/query_refresh.svg') center no-repeat;
  width: 14px;
  height: 14px;
}

.el-icon-query-refresh:before {
  content: "query-refresh";
  font-size: 14px;
  visibility: hidden;
}

.el-icon-query-refresh {
  font-size: 14px;
}

.el-icon-query-refresh:before {
  content: "\e611";
}
//重置
.el-icon-query-reset {
  background: url('~@/assets/image/query_reset.svg') center no-repeat;
  width: 14px;
  height: 14px;
}

.el-icon-query-reset:before {
  content: "query-reset";
  font-size: 14px;
  visibility: hidden;
}

.el-icon-query-reset {
  font-size: 14px;
}

.el-icon-query-reset:before {
  content: "\e611";
}
//下载
.el-icon-query-download {
  background: url('~@/assets/image/query_download.svg') center no-repeat;
  width: 14px;
  height: 14px;
}

.el-icon-query-download:before {
  content: "query-download";
  font-size: 14px;
  visibility: hidden;
}

.el-icon-query-download {
  font-size: 14px;
}

.el-icon-query-download:before {
  content: "\e611";
}


//新增
.el-icon-c-add {
  background: url('~@/assets/image/c_add.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-add:before {
  content: "c-add";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-add {
  font-size: 12px;
}

.el-icon-c-add:before {
  content: "\e611";
}
//修改
.el-icon-c-edit {
  background: url('~@/assets/image/c_edit.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-edit:before {
  content: "c-edit";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-edit {
  font-size: 12px;
}

.el-icon-c-edit:before {
  content: "\e611";
}
//删除
.el-icon-c-delete {
  background: url('~@/assets/image/c_delete.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-delete:before {
  content: "c-delete";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-delete {
  font-size: 12px;
}

.el-icon-c-delete:before {
  content: "\e611";
}
//查看
.el-icon-c-view {
  background: url('~@/assets/image/c_view.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-view:before {
  content: "c-view";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-view {
  font-size: 12px;
}

.el-icon-c-view:before {
  content: "\e611";
}
//二维码
.el-icon-c-qrcode {
  background: url('~@/assets/image/c_qrcode.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-qrcode:before {
  content: "c-qrcode";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-qrcode {
  font-size: 12px;
}

.el-icon-c-qrcode:before {
  content: "\e611";
}
//审批
.el-icon-c-process {
  background: url('~@/assets/image/c_process.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-process:before {
  content: "c-process";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-process {
  font-size: 12px;
}

.el-icon-c-process:before {
  content: "\e611";
}
//跟踪
.el-icon-c-track {
  background: url('~@/assets/image/c_track.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-track:before {
  content: "c-track";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-track {
  font-size: 12px;
}

.el-icon-c-track:before {
  content: "\e611";
}
//end
//导出
.el-icon-c-export {
  background: url('~@/assets/image/query_download.svg') center no-repeat;
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

.el-icon-c-export:before {
  content: "c-export";
  font-size: 12px;
  visibility: hidden;
}

.el-icon-c-export {
  font-size: 12px;
}

.el-icon-c-export:before {
  content: "\e611";
}
//end